package com.example.springboot.service;

import com.example.springboot.common.Page;
import com.example.springboot.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    void insertUser(User user);

    void deleteUser(int id);

    void updateUser(User user);

    void BatchdeleteUser(List<Integer> ids);

    List<User> selectAllUser();

    User selectUserById(Integer id);

    List<User> selectUserByName(String name);

    List<User> selectByMo(String username,String name);

    public Page<User> selectByPage(Integer pageNum, Integer pageSize, String username, String name);

    public User login(User user);

    public User register(User user);
}
